package com.gopay.bis.citic.ebank.impl;

import com.gopay.bis.citic.ebank.operation.CiticB2cQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.citic.ebank.pay.CiticB2cMessage;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

/**
 * @CiticB2cBankServiceImpl.java
 * @author wanggang
 * @2013-12-4 下午3:56:57  www.gopay.com.cn Inc.All rights reserved.
 */
public class CiticB2cBankServiceImpl implements BankService {

	private ICertHelper citicB2cCerthelper;
	private CiticB2cQuery citicB2cQuery;

	@Override
	public Object sign(BaseMessage msg) throws GopayException {
		return citicB2cCerthelper.sign(msg);
	}

	@Override
	public Object verify(BaseMessage msg) throws GopayException {
		return citicB2cCerthelper.verify(msg);
	}

	@Override
	public Object query(Object obj) throws GopayException {
		CiticB2cMessage message = (CiticB2cMessage) obj;
		return citicB2cQuery.query(message);
	}

	public void setCiticB2cCerthelper(ICertHelper citicB2cCerthelper) {
		this.citicB2cCerthelper = citicB2cCerthelper;
	}

	public void setCiticB2cQuery(CiticB2cQuery citicB2cQuery) {
		this.citicB2cQuery = citicB2cQuery;
	}

	@Override
	public Object dayend(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

}
